/**
 * @filename:PurInService Jan 15, 2025
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.Inspect;
import com.wonder.app.domain.PurIn;
import com.wonder.app.domain.PurInspectDetail;
import com.wonder.app.request.PurInRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
/**   
 * @Description:TODO(采购入库单列表服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface PurInService extends IService<PurIn> {

    
    /**
     * 验证采购入库单列表信息
     * 
     * @param purIn
     * @param type
     * @return 结果
     */
    public String validate(PurIn purIn,String type);   
   
	
	 /**
	 * Description:采购入库单列表分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<PurIn>   //分页记录
	 */
    public IPage<PurIn> selectList(PurInRequest request, Page<PurIn> page);
	/**
	 * 详情purin
	 * @param map
	 * @return
	 */
	Map<String, Object> getPurInDetail(Long user_id, Map<String, Object> map) throws Exception;

	/**
	 * 创建采购入库单
	 * @param inspect
	 * @param inspectDetailList
	 * @return
	 */
	Boolean createPurIn(Inspect inspect, List<PurInspectDetail> inspectDetailList, String userName,Long user_id) throws Exception;

	/**
	 * 获取采购入库单列表(手机端)
	 * @param map
	 * @return
	 */
	Map<String, Object> getPurInList(Map<String, Object> map);

	/**
	 * 审核采购入库单
	 * @param userName
	 * @param map
	 * @return
	 */
    Boolean auditPurIn(Long user_id,String userName, Map<String, Object> map) throws Exception;

	/**
	 * 采购入库单详情(手机端)
	 * @param map
	 * @return
	 * @throws Exception
	 */
    Map<String, Object> getPurInDetailPhone(Long user_id,Map<String, Object> map) throws Exception;

	Boolean auditPurInPda(Long user_id, String userName, Map<String, Object> map)throws Exception;
}
